import { lazy } from "react"
import HocComp from '../hoc/HocApp'

const arr = [
    {
        path: '/home',
        component: HocComp(lazy(() => import('../pages/Home/Home'))),
        title: '首页',
        type: 'tabber'
    },
    {
        path: '/news',
        component: HocComp(lazy(() => import('../pages/News/News'))),
        title: '新闻',
        type: 'tabber'
    },
    {
        path: '/detail',
        component: HocComp(lazy(() => import('../pages/News/Detail'))),
        title: '新闻详情',
    },
    {
        path: '/cart',
        component: HocComp(lazy(() => import('../pages/Cart/Cart'))),
        title: '购物车',
        type: 'tabber'
    },
    {
        path: '/mine',
        component: HocComp(lazy(() => import('../pages/Mine/Mine'))),
        title: '我的',
        type: 'tabber'
    },
    {
        path: '',
        component: lazy(() => import('../pages/404')),
        title: '访问出错',
        type: 'tabber'
    }
]
export default arr;